//
// Created by Kame.Liang on 2021/9/13.
//

#ifndef UNTITLED1_CFACTORY2_H
#define UNTITLED1_CFACTORY2_H
#include "AbstractFactory.h"
#include "ReflectFactory.h"
#include "CSunflower.h"
#include "CCattle.h"
class CFactory2{
    DECLARE_CLASS(CFactory2)
public:
    virtual IPlant *makePlant(){
        return new (std::nothrow)CSunflower();
    }

    virtual IAnimal *makeAnimal(){
        return new (std::nothrow)CCattle();
    }
};
IMPLEMENT_CLASS(CFactory2)
#endif //UNTITLED1_CFACTORY2_H
